package basic.io;

import java.io.IOException;
import java.io.Reader;

public class MyLineNumberReader extends MyBufferedReader {

	private Integer lineNumber=0;
	
	
	
	public Integer getLineNumber() {
		return lineNumber;
	}

	public void setLineNumber(Integer lineNumber) {
		this.lineNumber = lineNumber;
	}

	public MyLineNumberReader(Reader reader) {
		super(reader);
		
	}
	
   public String readLine() throws IOException{
	   lineNumber++;
	   return super.readLine();
   }

}
